import loading from './index.vue'
import { createVNode, render } from 'vue'


export default {
    install(app) {
        const VNode = createVNode(loading)
        render(VNode, document.body)
        app.config.globalProperties.loading = {
            show: VNode.component?.exposed?.show,
            hide: VNode.component?.exposed?.hide
        }
    }
}